{extend name="./public/base"/}
{block name="alt"}职业方向--FAQ{/block}
{block name="alter"}职业方向FAQ列表{/block}
{block name="title"}BangBang职业方向FAQ{/block}
{block name="main"}
<div id="faq">
					<span>常见问题列表</span>
					<div class="content5">
						{volist name="faqs" id="faq" key="k"}
						<div>
							{if condition="$faq.fstatus==1"}
							<p class="q text-danger">{$k+($page-1)*5}：Q：{$faq.question} <a href="{:url('shield3',['fid'=>$faq.fid,'oid'=>$faq.oid])}" class="text-success" style="float: right;">解封</a></p>
							<p class="a text-danger">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A：{$faq.answer}</p>
							{else/}<p class="q">{$k+($page-1)*5}：Q：{$faq.question} <a href="{:url('shield2',['fid'=>$faq.fid,'oid'=>$faq.oid])}" class="text-danger" style="float: right;">封禁</a></p>
							<p class="a">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A：{$faq.answer}</p>
							{/if}
						</div>
						{/volist}
						 {$faqs->render()}
					</div>
</div>

{/block}
{block name="tan"}
	<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">添加新的常见问题</button>
	<br>
	<br>
	<!-- 模态框（Modal） -->
               <!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel">添加新的常见问题</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" action="{:url('doaddfaqs')}" method="post">
                	{volist name="occs" id="o"}
                	<input type="hidden" value="{$o.oid}" name="oid">
                	{/volist}
<div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">问题</label>
    <div class="col-sm-10">
      <input type="text" name="question" class="form-control"  required>
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">答案</label>
    <div class="col-sm-10">
      <input type="text" name="answer" class="form-control" required>
    </div>
  </div>

  <button type="submit" class="btn btn-primary">提交</button>
</form>
            </div>
           
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
{/block}